<!--<?php
print<<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>数据统计</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/controlcc/javascript/Calendar.js"></script>
</head>
<base target="_self" />
<body style="text-align:left; font-size:12px;">
<div  id="toppath">整站种子-统计</div>

<form name="countbtc"  method="post" action="count.inc.php">
<input type="hidden" name="action" value="search" />
<table width="100%" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <tH width="30%">按条件进行查询</tH>
    <tH width="70%">&nbsp;</tH>
  </tr>
  <tr>
    <td class="table_left"><span style=" margin:0 0 0 20px;">ACS: </span></td>
    <td><span style=" margin:0 0 0 20px;">
	<select name="btcid">
		<option value="-1">全部</option>
		$btcstr
		<!--每一个ACS机器 -->
	</select>
    </span></td>
  </tr>
  <tr>
    <td class="table_left"><span style=" margin:0 0 0 20px;">时间段:</span></td>
    <td><span style=" margin:0 0 0 20px;">
      <input type="text" class="input1" name="stime" size="20" value="" style="height:22px;width:95px;" onfocus="setday(this)"/>
      -
      <input type="text" class="input1" name="etime" size="20" value="" style="height:22px;width:95px;" onfocus="setday(this)"/>
      <input type="submit" name="sum" class="input1" style="background: #FFCC00; width:100PX;" value="查询" />
    </span></td>
  </tr>
  <tr>
<!--
EOT;
if(!$stime||!$etime){
print<<<EOT
-->
	<td colspan="2"><div align="center">您还没有选择起至时间段，将显示所有时间段统计结果。</div></td>
<!--
EOT;
}else{
print<<<EOT
-->
    <td colspan="2"><div align="center">你选择了<span style="color:red">{$stimeo}</span>到<span style="color:red">{$etimeo}</span>时间段</div></td>
<!--
EOT;
}
print<<<EOT
-->
    </tr>
</table>

<!--磁盘剩余空间:<input  class="input1" type="text" name="diskfree" value="$diskfree" size="2" style="margin-right:30px;height:22px;"/>--><br>
</form>




 <strong>以下为符合条件的结果</strong>
<table width="43%" border="0" cellpadding="0" cellspacing="0" style="color:#666666;font-size:13px;">
<tr>
  <th width="14%">ACS号</th>
  <th width="17%">IP:Port</th>
  <th width="17%">种子数目</th>
  <th width="17%">已完成种子数目</th>
  <th width="17%">状态图</th>
</tr>

<!--
EOT;
if(empty($btcid))
{

$kl=0;
foreach($btclist as $list)
{
if(!$list[btcid] || !$ip[$kl] ){$kl++;continue;}

$h1=explode(':',$ip[$kl]);
$port=$h1[1];
$h1=explode('.',$h1[0]);
$nid=$kl+1;
print<<<EOT
-->

<tr>
  <td>$nid</td>
  <td>$ip[$kl]</td>
  <td>$list[btcid]</td>
  <td>$list[completed]</td>
  <td><a href="../cacti/graph_view.php?action=preview&ifview=torrent{$h1[3]}_{$port}" target="_self">查看</a></td>
</tr>
<!--
EOT;
$kl++;
}
print<<<EOT
-->
<tr>
  <td>全部ACS种子数目</td>
  <td>&nbsp;</td>
  <td>$btclist_sum</td>
  <td>$btclistc_sum</td>
  <td><!--<a href="../cacti/graph_view.php?action=preview&ifview=totaltorrent" target="_self">查看</a>--></td>
</tr>
</table>


</body>
</html>
<!--
EOT;
}else{
print<<<EOT
-->
<tr>
  <td>$strstr</td>
  <td>$cnum[num]</td>
  <td>$cnumc[num]</td>
  </tr>

</table>


</body>
</html>
<!--
EOT;
}
?>-->

